# obj = ts
# src= test.cc
# CFLAG = -std=c++17 -I /home/kxf/bitrpc/build/release-install-cpp11/include
# LFLAG = -L/home/kxf/bitrpc/build/release-install-cpp11/lib -lmuduo_net -lmuduo_base
# $(obj): $(src)
# 	g++ -o $@ $^ -std=c++17  $(CFLAG) $(LFLAG) -ljsoncpp 

# .PJHONU:clean
# clean:
# 	rm -f $(obj)
obj1 = svr
obj2 = cl
src1= server.cc
src2= client.cc
CFLAG = -std=c++17 -I /home/kxf/bitrpc/build/release-install-cpp11/include
LFLAG = -L/home/kxf/bitrpc/build/release-install-cpp11/lib -lmuduo_net -lmuduo_base -ljsoncpp

all : $(obj1) $(obj2)

$(obj1): $(src1)
	g++ -o $@ $^ $(CFLAG) $(LFLAG)
$(obj2): $(src2)
	g++ -o $@ $^ $(CFLAG) $(LFLAG)

.PJHONU:clean
clean:
	rm -f $(obj1) $(obj2)